<!--IKCOMMENT插件开始-->
<div class="public_comment">
    <div class="orderbar"> 
    {% if page==1 and strObj['count_comment']>1 %}
    
        <a href="{{url(strObj['author']['url'])}}">{{strObj['author']['text']}}</a>&nbsp;&nbsp;

 		<a href="{{url(strObj['order']['url'])}}">{{strObj['order']['text']}}</a>&nbsp;&nbsp;
        
    {% endif %}
    </div>

      <!--comment评论-->
      <ul class="comment" id="comment">
       {% if commentList%}
        {% for item in commentList%}
        <li class="clearfix" id="cli_{{item['cid']}}">
          <div class="user-face"> 
              <a href="{{url('space/'~item['user']['doname'])}}">
              <img title="{{item['user']['username']}}" alt="{{item['user']['username']}}" src="{{item['user']['face_48']}}">
              </a>
          </div>
          <div class="reply-doc">
            <h4><span class="fr"></span>
            <a href="{{url('space/'~item['user']['doname'])}}">{{item['user']['username']}}</a> 
            	{{date('Y-m-d H:i:s',item['addtime'])}}
            </h4>
            
            {% if item['referid'] != 0%}
            <div class="recomment">
            <span id="re_sub_{{item['cid']}}">
            	{{sub_str(item['recomment']['content'],60)}}&nbsp;
                {% if ck_strlen(item['recomment']['content']) > 60 %}
                	<a href="javascript:;" onClick="$('#re_all_{{item['cid']}}').show();$('#re_sub_{{item['cid']}}').hide();">&darr; </a> 
                {% endif %}
            </span>
            <span style="display:none" id="re_all_{{item['cid']}}">
            	{{item['recomment']['content']}}
            </span>
           		{% set oneuser = item['recomment']['user'] %}
                <strong>
                <a href="{{url('space/'~oneuser['doname'])}}">
                {{oneuser['username']}}</a>
                </strong>
            </div>
            {% endif %}
            
            <p>{{item['content']}}</p>
            
            <!--签名--> 
            {% if !(item['user']['signed'] is empty)%}
            <div class="signed">{{item['user']['signed']}}</div>
            {% endif%}
            
            <div class="group_banned"> 
              {% if visitor %}
              <span><a href="javascript:void(0)"  onclick="commentOpen({{item['cid']}},{{item['typeid']}})">回复</a></span>
              {% endif %}

              {% if (strObj['userid'] ==  visitor['userid']) or (visitor['userid'] == item['userid'])%}
              <span><a class="j a_confirm_link" href="javascript:;" rel="nofollow" onclick="delComment(this,{{item['cid']}})" data-url="{{url('home/comment/delete')}}" data-name="{{item['user']['username']}}">删除</a> </span> 
              {% endif %}
            </div>
             {% if visitor %}
            <div id="rcomment_{{item['cid']}}" style="display:none; clear:both; padding:0px 10px">
              <form postAction="{{url('home/comment/add')}}" id="reformMini" referid="{{item['cid']}}">
              <textarea style="width:550px;height:50px;font-size:12px; margin:0px auto;" id="recontent_{{item['cid']}}" type="text" onkeydown="keyComment(this,event)" class="txt" name="content"></textarea>
              <p style=" padding:5px 0px">
              	 <input type="hidden" name="base64Data" value="{{base64Data}}" />
                 <input type="button" onClick="addComment(this)" id="recomm_btn_{{item['cid']}}" class="subab" value="提交" />
                &nbsp;&nbsp;<a href="javascript:;" onclick="$('#rcomment_{{item['cid']}}').slideToggle('fast');">取消</a> 				             </p>
             </form>
            </div>
             {% endif %}
          </div>
          <div class="clear"></div>
        </li>
        {% endfor %}
       {% endif %}
      </ul>

 	<div class="page">{{pageUrl}}</div>
       
	<h2>你的回应&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·</h2>
	<div class="public_comment_post"> 
	  {% if !visitor %}
	  <div style="border:solid 1px #DDDDDD; text-align:center;padding:20px 0; font-size:14px"><a href="{{url('home/user/login')}}" class="i a_show_login">登录</a> | <a href="{{url('home/user/register')}}" class="i a_show_register">注册</a></div>
	  {% else %}
	  <form postAction="{{url('home/comment/add')}}" id="formMini" referid="0">
	    <textarea  style="width:100%;height:100px;" id="editor_mini" name="content" class="txt" onkeydown="keyComment(this,event)"></textarea>
	    <input type="hidden" name="base64Data" value="{{base64Data}}" />
	    <input class="submit" type="button" value="加上去(Crtl+Enter)" style="margin:10px 0px" onClick="addComment(this)" />
	  </form>
	  {% endif %}
	</div>
</div><!--//public_comment--> 
<style>
/*comment评论列表*/
.public_comment{ padding-top:15px; margin-top:15px; border-top:1px solid #e9e9e9}
.comment{width: 100%;overflow:hidden;}
.comment li {margin: 0 0 0px 0px;overflow:hidden; display:block;}
.comment li .user-face {float: left;height: 48px;overflow: hidden;width: 48px; margin-top:0px;}
.comment li .reply-doc {float: right;width: 580px;overflow: hidden;}
.comment li .reply-doc p img{max-width:450px;}
.comment li .reply-doc h4 {font-weight:normal;font-size:12px;height: 22px;line-height: 22px;margin: 0 0 5px 0px;color: #666666;display: block;overflow: hidden; background-color:#F0F6F3; padding:0px 10px}
.comment li .reply-doc p {margin: 0 0 25px;overflow: hidden;word-wrap: break-word;}
.comment li .reply-doc .recomment {margin: 20px 0;font-size: 12px; padding-left:7px;border-left: 1px solid; width:80%}
.comment li .reply-doc .recomment strong{margin-left: 10px;white-space: nowrap;}
.comment li .group_banned {text-align: right; padding-bottom:5px}
.comment li .group_banned span{ margin-left:10px}
.comment li .group_banned span a{ color:#aaa}
.comment li .group_banned span a:hover{ color:#fff}
/**orderbar**/
.public_comment .orderbar{ text-align:right; padding-bottom:10px}
</style> 
<!--IKCOMMENT插件结束-->
<div style="display:none" id="tokenID">
<input type="hidden" name="tokenKey" value="{{security.getTokenKey()}}" />
<input type="hidden" name="tokenValue" value="{{security.getToken()}}" />
</div>